-- local zhenliang = fk.CreateSkill{
--     name = "wk_heg__zhenliang",
-- }

-- Fk:loadTranslationTable{
--   ["wk_heg__zhenliang"] = "贞良",
--   [":wk_heg__zhenliang"] = "其他角色的武将牌状态改变后，你可令其弃置一张牌，然后其可受到你造成的1点伤害，令你<a href=':DoGiveDeputy'>遣调</a>此武将牌于其至其回合结束。<br>"..
--   "<font color = 'gray'>注：武将牌状态改变包括：明置、暗置、移除和变更。</font>",
--   ["#wk_heg__zhenliang-ask"] = "你可对 %dest 发动〖贞良〗",
--   ["wk_heg__zhenliang-discard"] = "令 %src 弃牌",
--   ["wk_heg__zhenliang-drawcard"] = "令 %src 摸牌",
--   ["wk_heg__zhenliang-give"] = "遣调 卢植",

--   ["$wk_heg__zhenliang1"] = "贞洁贤良，吾之本心。",
--   ["$wk_heg__zhenliang2"] = "风霜以别草木之性，危乱而见贞良之节。",
-- }

-- local H = require "packages/ol_hegemony/util"
-- local HG = require "packages/new_heg_diy_my/util"

-- local zhenliang_spec = {
--     anim_type = "special",
--     can_trigger = function(self, event, target, player, data)
--       return player:hasSkill(zhenliang.name) and target ~= player and not target.dead
--     end,
--     on_cost = function(self, event, target, player, data)
--       return player.room:askToSkillInvoke(player, {skill_name = zhenliang.name, data = data, prompt = "#wk_heg__zhenliang-ask::" .. target.id})
--     end,
--     on_use = function(self, event, target, player, data)
--       local room = player.room
--       if not target:isNude() then
--           room:askToDiscard(target,{
--             min_num = 1,
--             max_num = 1,
--             include_equip = true,
--             skill_name = zhenliang.name,
--             cancelable = false,
--         })
--       end
--       local choices = {"Cancel"}
--       if (player.general == "wk_heg__luzhi" or player.deputyGeneral == "wk_heg__luzhi") and target:getMark("@wk_give_deputy") == 0 then
--         table.insert(choices, 1, "wk_heg__zhenliang-give")
--       end
--       if room:askToChoice(target, {choices = choices, skill_name = zhenliang.name}) ~= "Cancel" then
--         room:damage{
--           from = player,
--           to = target,
--           damage = 1,
--           skillName = zhenliang.name,
--         }
--       if player.dead or target.dead then return end
--         local isDeputy = H.inGeneralSkills(player, zhenliang.name)
--       if isDeputy then
--         HG.DoGiveDeputy(room, player, target, "wk_heg__luzhi", player.kingdom, isDeputy == "d")
--         end
--       end
--     end,
-- }

-- zhenliang:addEffect(fk.GeneralRevealed, zhenliang_spec)
-- zhenliang:addEffect(fk.GeneralHidden, zhenliang_spec)
-- zhenliang:addEffect( H.GeneralRemoved, zhenliang_spec)
-- zhenliang:addEffect( H.TransformGeneraled, zhenliang_spec)

-- zhenliang:addEffect(fk.TurnEnd,{
--     is_delay_effect = true,
--     anim_type = "special",
--     can_trigger = function(self, event, target, player, data)
--       return player.room.current == player and player:getMark("@wk_give_deputy") == "wk_heg__luzhi"
--     end,
--     on_cost = Util.TrueFunc,
--     on_use = function(self, event, target, player, data)
--       HG.StopGiveDeputy(player.room, player, zhenliang.name)
--     end,
-- })


-- return zhenliang